package zhklappoint.entity;


import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;

import zhklappoint.util.BaseEntity;

//微信用户
@Entity(name = "zhkl_consumer_user")
public class WXUser extends BaseEntity {

    //会员名称
    @Column(length = 128)
    private String username;
    //会员密码
    @Column(length = 128)
    private String password;
    //性别
    @Column(length = 128)
    private Integer gender;
    //出生日期
    @Column(length = 32)
    private Date birthday;
    //注册时间
    @Column(length = 64)
    private Date registerTime;
    //最后登录时间
    @Column(length = 64)
    private Date lastLoginTime;
    //最后登录Ip
    @Column(length = 64)
    private String lastLoginIp;
    //店铺编码唯一标识
//    @Column(length = 64)
//    private String shopCode;
    //会员等级
    @Column(length = 32)
    private Integer userLevelId;
    //别名
    @Column(length = 128)
    private String nickname;
    //手机号码
    @Column(length = 32)
    private String mobile;
    //注册Ip
    @Column(length = 64)
    private String registerIp;
    //头像
    @Column(length = 256)
    private String avatar;
    //微信Id
    @Column(length = 256)
    private String weixinOpenid;
    //授权途径--------------0商城进入 1投票进入 2H5小程序使用
    @Column(columnDefinition = "tinyint")
    private Integer intoWay;
    //投票次数限制
    @Column(length=16)
    private Integer times=0;
  //投票次数限制
//    @Column(length=16)
//    private Integer commentTimes=0;
    //是否为老板的判断
//    @Column(length=16)
//    private Integer isBoss=0;

    public WXUser() {}

    public WXUser(WXUser wuser) {
        super();
        this.username = wuser.username;
        this.password = wuser.password;
        this.gender = wuser.gender;
        this.birthday = wuser.birthday;
        this.registerTime = wuser.registerTime;
        this.lastLoginTime = wuser.lastLoginTime;
        this.lastLoginIp = wuser.lastLoginIp;
        this.userLevelId = wuser.userLevelId;
        this.nickname = wuser.nickname;
        this.mobile = wuser.mobile;
        this.registerIp = wuser.registerIp;
        this.avatar = wuser.avatar;
        this.weixinOpenid = wuser.weixinOpenid;
        this.intoWay = wuser.intoWay;
        this.times = wuser.times;
//        this.commentTimes = wuser.commentTimes;
//        this.isBoss=wuser.isBoss;
    }


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

//    public String getShopCode() {
//        return shopCode;
//    }
//
//    public void setShopCode(String shopCode) {
//        this.shopCode = shopCode;
//    }

    public String getLastLoginIp() {
        return lastLoginIp;
    }

    public void setLastLoginIp(String lastLoginIp) {
        this.lastLoginIp = lastLoginIp;
    }

    public Integer getUserLevelId() {
        return userLevelId;
    }

    public void setUserLevelId(Integer userLevelId) {
        this.userLevelId = userLevelId;
    }

    public String getRegisterIp() {
        return registerIp;
    }

    public void setRegisterIp(String registerIp) {
        this.registerIp = registerIp;
    }

    public String getWeixinOpenid() {
        return weixinOpenid;
    }

    public void setWeixinOpenid(String weixinOpenid) {
        this.weixinOpenid = weixinOpenid;
    }
	public Integer getIntoWay() {
		return intoWay;
	}
	public void setIntoWay(Integer intoWay) {
		this.intoWay = intoWay;
	}
	public Integer getTimes() {
		return times;
	}
	public void setTimes(Integer times) {
		this.times = times;
	}
//	public Integer getIsBoss() {
//		return isBoss;
//	}
//
//	public void setIsBoss(Integer isBoss) {
//		this.isBoss = isBoss;
//	}
	
}
